package com.yxuan.springboot.controller;

import com.yxuan.springboot.service.KamilsService;
import com.yxuan.springboot.util.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.stereotype.Controller;
import com.yxuan.springboot.model.Kamils;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.Map;

/**
 * 
 * @author zchao
 *   Kamils控制器
 * @date 2024-05-14 19:58:05
 */
@Controller
@Api(tags = "卡密表")
@RequestMapping(value = "/kamils", method = {RequestMethod.POST,RequestMethod.GET})
public class KamilsController extends BaseController<Kamils>{

    @Autowired
    private KamilsService kamilsService;

    @ApiOperation(value = "激活卡密",notes = "激活卡密")
    @ResponseBody
    @RequestMapping("/activeKamil")
    public Result activeKamil(@RequestBody Map kamils) throws Exception{
        return kamilsService.activeKamil(kamils);
    }




}
